"use strict";
const common_vendor = require("../../../../../../../common/vendor.js");
if (!Array) {
  const _easycom_up_text2 = common_vendor.resolveComponent("up-text");
  const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
  const _easycom_up_datetime_picker2 = common_vendor.resolveComponent("up-datetime-picker");
  const _easycom_up_button2 = common_vendor.resolveComponent("up-button");
  (_easycom_up_text2 + _easycom_up_picker2 + _easycom_up_datetime_picker2 + _easycom_up_button2)();
}
const _easycom_up_text = () => "../../../../../../../node-modules/uview-plus/components/u-text/u-text.js";
const _easycom_up_picker = () => "../../../../../../../node-modules/uview-plus/components/u-picker/u-picker.js";
const _easycom_up_datetime_picker = () => "../../../../../../../node-modules/uview-plus/components/u-datetime-picker/u-datetime-picker.js";
const _easycom_up_button = () => "../../../../../../../node-modules/uview-plus/components/u-button/u-button.js";
if (!Math) {
  (_easycom_up_text + _easycom_up_picker + _easycom_up_datetime_picker + _easycom_up_button)();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const timeShow = common_vendor.ref(false);
    const timeConfirmValues = common_vendor.ref([]);
    const selectedTime = common_vendor.ref(null);
    const timeConfirm = () => {
      if (selectedTime.value) {
        timeConfirmValues.value = selectedTime.value;
        console.log(timeConfirmValues.value);
      }
      timeShow.value = false;
    };
    const diseaseNamesShow = common_vendor.ref(false);
    const diseaseNamesColumns = common_vendor.reactive([[
      "高血压",
      "血脂异常",
      "脑血管病",
      "心脏疾病",
      "肾脏疾病",
      "周围血管病",
      "视网膜病变",
      "糖尿病"
    ]]);
    const diseaseNamesConfirmValue = common_vendor.ref(null);
    const diseaseNamesConfirm = (selectedValue) => {
      diseaseNamesConfirmValue.value = selectedValue;
      console.log(diseaseNamesConfirmValue.value);
      diseaseNamesShow.value = false;
    };
    return (_ctx, _cache) => {
      return {
        a: common_vendor.p({
          text: "请选择您的疾病类型",
          bold: "true"
        }),
        b: common_vendor.p({
          type: "info",
          text: "请选择疾病"
        }),
        c: common_vendor.o(($event) => diseaseNamesShow.value = false),
        d: common_vendor.o(diseaseNamesConfirm),
        e: common_vendor.p({
          show: diseaseNamesShow.value,
          columns: diseaseNamesColumns
        }),
        f: common_vendor.p({
          type: "info",
          text: ">",
          align: "right"
        }),
        g: common_vendor.o(($event) => diseaseNamesShow.value = true),
        h: common_vendor.p({
          text: "请选择您的疾病确诊时间",
          bold: "true"
        }),
        i: common_vendor.p({
          type: "info",
          text: "请选择时间"
        }),
        j: common_vendor.o(timeConfirm),
        k: common_vendor.o(($event) => timeShow.value = false),
        l: common_vendor.o(($event) => selectedTime.value = $event),
        m: common_vendor.p({
          show: timeShow.value,
          mode: "date",
          modelValue: selectedTime.value
        }),
        n: common_vendor.p({
          type: "info",
          text: ">",
          align: "right"
        }),
        o: common_vendor.o(($event) => timeShow.value = true),
        p: common_vendor.p({
          type: "primary",
          text: "提交 "
        })
      };
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6f43dd1b"]]);
wx.createPage(MiniProgramPage);
